package fire.and.near.challenger.web;

import fire.and.near.challenger.web.HttpRequestSender.RequestOptions;

public class ServerResponse {
	private int statusCode;
	private Object data;
	private RequestType requestType = null;
	private RequestOptions requestOption = null;

	public ServerResponse() {
	}

	public ServerResponse(int statusCode, Object data) {
		this.setData(data);
		this.setStatusCode(statusCode);
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public int getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}
	
	public RequestType getRequestType() {
		return requestType;
	}

	public void setRequestType(RequestType requestType) {
		this.requestType = requestType;
	}

	public RequestOptions getRequestOption() {
		return requestOption;
	}

	public void setRequestOption(RequestOptions requestOption) {
		this.requestOption = requestOption;
	}

	public enum RequestType {
		PUT, POST
	}
}
